package com.wy.service.impl;

import com.wy.dao.RoomDao;
import com.wy.model.Room;
import com.wy.service.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @描述
 * @创建人 wangyue
 * @创建时间2019/12/216:28
 */
@Service
public class RoomServiceImpl implements RoomService{

    @Autowired
    private RoomDao roomDao;

    @Override
    public List<Room> list(Room room) {
        return roomDao.list(room);
    }

    @Override
    public Room getById(String id) {
        return roomDao.getById(id);
    }

    @Override
    public void insert(Room room) {
        roomDao.insert(room);
    }

    @Override
    public void update(Room room) {
        roomDao.update(room);
    }

    @Override
    public int deletebth(String[] id) {
        return roomDao.deletebth(id);
    }
}
